package com.jjx.trainingapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jjx.trainingapi.entity.param.DcUserFriendsParam;
import com.jjx.trainingapi.entity.po.DcUserFriends;
import com.jjx.trainingapi.entity.vo.CommentListVo;
import com.jjx.trainingapi.entity.vo.FriendsListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年06月03日 23:27
 * @description believe in yourself
 */
@Mapper
public interface DcUserFriendsMapper extends BaseMapper<DcUserFriends> {
    /**
     * 获取列表
     *
     * @return
     */
    List<FriendsListVo> getList(@Param("userId") Integer userId);

    /**
     * 获取评论列表
     *
     * @param friends
     * @return
     */
    List<CommentListVo> getCommentList(@Param("friends") DcUserFriendsParam friends);


}